const webpack = require('webpack');
const path=require('path');
module.exports = {
    entry: {
        manifest: [
            "react",
            "react-addons-pure-render-mixin",
            "react-dom",
            "react-redux",
            "react-router",
            "react-router-dom",
            "redux",
            'jquery',
            'bootstrap'
            ]           
    },
    output: {
        path: path.resolve(__dirname,'../'),
        filename: '[name].js',
        library: '[name]_library'
    },
    plugins: [
        new webpack.DllPlugin({
            context: __dirname, 
            path:path.resolve(__dirname,'../','[name].json'),     
            name: '[name]_library'
        }),
        new webpack.ProvidePlugin({
            $: 'jquery',
            jQuery: 'jquery',
            'window.jQuery': 'jquery',
            'window.$': 'jquery'
        }),
    ]
};